package com.yuda.tools.log.service.Impl;

import com.yuda.tools.log.entity.RenderQueryResult;
import com.yuda.tools.log.entity.Subject;
import com.yuda.tools.log.mapper.RenderMapper;
import com.yuda.tools.log.service.RenderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RenderServiceImpl implements RenderService {


    @Autowired
    private RenderMapper renderMapper;


    @Override
    public List<RenderQueryResult> getMessage(String subjectId, String quesId, String renderStatus) {
        return renderMapper.getMessage(subjectId,quesId,renderStatus);
    }

    @Override
    public List<RenderQueryResult> getMessage2(String subjectId, String quesId, String renderStatus,String result1) {
        return renderMapper.getMessage2(subjectId,quesId,renderStatus,result1);
    }

    @Override
    public List<RenderQueryResult> getPartRender() {
        return renderMapper.getPartRender();
    }

    @Override
    public RenderQueryResult getByZkzNum(String zkzNum, String quesId) {
        return renderMapper.getByZkzNum(zkzNum,quesId);
    }

    @Override
    public List<RenderQueryResult> getStuMessage(String studentName, String sfzNum, String zkzNum, String subjectId, String quesId,String[] renderStatus) {
        return renderMapper.getStuMessage(studentName,sfzNum,zkzNum,subjectId,quesId,renderStatus);
    }

    @Override
    public List<RenderQueryResult> getDetail(String subjectName, String quesId) {
        return renderMapper.getDetail(subjectName,quesId);
    }

    @Override
    public List<Subject> getSubjectName() {
        return renderMapper.getSubjectName();
    }

    @Override
    public List<Long> getQuesId(Long subjectId) {
        return renderMapper.getQuesId(subjectId);
    }
}
